/**
 * Company : SIANGKLOM.
 * Created By : Chatree Siangklom
 * Created On : Sep 26, 2013  10:48:30 AM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.entitys.security
 * File Name : AdUserLoginHistory.java
 * TODO
 */
package com.tis.database.entitys.security;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.tis.database.dao.ClsInstance;

@Entity
@Table(name=ClsInstance.INTERFACE_SCHEMA + ClsInstance.POINTER + "AD_USER_LOGIN_HISTORY")
@NamedQueries({
    @NamedQuery(name = AdUserLoginHistory.findAll, query = "from AdUserLoginHistory c "),
    @NamedQuery(name = AdUserLoginHistory.findById, query = "from AdUserLoginHistory c WHERE  c.pkId = :pkId ")
})
public class AdUserLoginHistory implements Serializable {
	private static final long serialVersionUID = 1L;

	public static final String findById = "AdUserLoginHistory_findById";
	public static final String findAll = "AdUserLoginHistory_findAll";
	
	@Id
	@Column(name="AD_USER_LOGIN_HISTORY_ID")
	private BigDecimal pkId;
	
	@Override
	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}
	
	private String accept;
	
	
	@Column(name="USER_ACCESS_PAGENAME", length=500)
	private String userAccessPageName;
	
	@Column(name="INSTANCE_NO", length=100)
	private String instanceNo;

	@Column(name="ACCEPT_ENCODING")
	private String acceptEncoding;

	@Column(name="ACCEPT_LANGUAGE")
	private String acceptLanguage;

	@Column(name="AD_USER_LOGIN_ID")
	private BigDecimal adUserLoginId;

	private String address;

	@Column(name="\"CONNECTION\"")
	private String connection;

	private String cookie;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	private String dnt;

	@Column(name="\"HOST\"")
	private String host;

	private String password;

	@Column(name="USER_AGENT")
	private String userAgent;

	@Column(name="USER_LOGIN")
	private String userLogin;
	
	@Column(name="CLIENT_IP")
	private String clientIp;

	public AdUserLoginHistory() {
	}
	
	/**
	 * @return the userAccessPageName
	 * Date =Sep 26, 2013 : 4:52:34 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public String getUserAccessPageName() {
		return userAccessPageName;
	}



	/**
	 * @param userAccessPageName the userAccessPageName to set
	 * Date =Sep 26, 2013 : 4:52:34 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public void setUserAccessPageName(String userAccessPageName) {
		this.userAccessPageName = userAccessPageName;
	}



	/**
	 * @return the instanceNo
	 * Date =Sep 26, 2013 : 4:06:55 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public String getInstanceNo() {
		return instanceNo;
	}



	/**
	 * @param instanceNo the instanceNo to set
	 * Date =Sep 26, 2013 : 4:06:55 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public void setInstanceNo(String instanceNo) {
		this.instanceNo = instanceNo;
	}



	/**
	 * @return the clientIp
	 * Date =Sep 26, 2013 : 1:28:26 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public String getClientIp() {
		return clientIp;
	}

	/**
	 * @param clientIp the clientIp to set
	 * Date =Sep 26, 2013 : 1:28:26 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	/**
	 * @return the pkId
	 * Date =Sep 26, 2013 : 1:19:08 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public BigDecimal getPkId() {
		return pkId;
	}

	/**
	 * @param pkId the pkId to set
	 * Date =Sep 26, 2013 : 1:19:08 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public void setPkId(BigDecimal pkId) {
		this.pkId = pkId;
	}



	public String getAccept() {
		return this.accept;
	}

	public void setAccept(String accept) {
		this.accept = accept;
	}

	public String getAcceptEncoding() {
		return this.acceptEncoding;
	}

	public void setAcceptEncoding(String acceptEncoding) {
		this.acceptEncoding = acceptEncoding;
	}

	public String getAcceptLanguage() {
		return this.acceptLanguage;
	}

	public void setAcceptLanguage(String acceptLanguage) {
		this.acceptLanguage = acceptLanguage;
	}

	public BigDecimal getAdUserLoginId() {
		return this.adUserLoginId;
	}

	public void setAdUserLoginId(BigDecimal adUserLoginId) {
		this.adUserLoginId = adUserLoginId;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getConnection() {
		return this.connection;
	}

	public void setConnection(String connection) {
		this.connection = connection;
	}

	public String getCookie() {
		return this.cookie;
	}

	public void setCookie(String cookie) {
		this.cookie = cookie;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getDnt() {
		return this.dnt;
	}

	public void setDnt(String dnt) {
		this.dnt = dnt;
	}

	public String getHost() {
		return this.host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserAgent() {
		return this.userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

	public String getUserLogin() {
		return this.userLogin;
	}

	public void setUserLogin(String userLogin) {
		this.userLogin = userLogin;
	}



	/**
	 * Date =Sep 26, 2013 : 1:19:21 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 * @param pkId
	 * @param accept
	 * @param acceptEncoding
	 * @param acceptLanguage
	 * @param adUserLoginId
	 * @param address
	 * @param connection
	 * @param cookie
	 * @param createdBy
	 * @param createdOn
	 * @param dnt
	 * @param host
	 * @param password
	 * @param userAgent
	 * @param userLogin
	 */
	public AdUserLoginHistory(BigDecimal pkId, String accept,
			String acceptEncoding, String acceptLanguage,
			BigDecimal adUserLoginId, String address, String connection,
			String cookie, String createdBy, Date createdOn, String dnt,
			String host, String password, String userAgent, String userLogin) {
		this.pkId = pkId;
		this.accept = accept;
		this.acceptEncoding = acceptEncoding;
		this.acceptLanguage = acceptLanguage;
		this.adUserLoginId = adUserLoginId;
		this.address = address;
		this.connection = connection;
		this.cookie = cookie;
		this.createdBy = createdBy;
		this.createdOn = createdOn;
		this.dnt = dnt;
		this.host = host;
		this.password = password;
		this.userAgent = userAgent;
		this.userLogin = userLogin;
	}
	
	

}